package com.yanyanr.yr.greendaosample;

import android.app.Application;

import com.yanyanr.yr.greendaosample.greendao.DbHelper;


/**
 * Created by YR on 2016/7/20.
 */
public class myApplication extends Application{

    private static myApplication myApp = null;

    @Override
    public void onCreate() {
        super.onCreate();
        myApp = new myApplication();


        DbHelper.init(this);//传入Context初始化数据库帮助类
    }

    public static myApplication getContext() {
        return myApp;
    }
}
